module.exports = {
  openId: {
    label: 'openId',
    rule: { NotNull: true }
  },
  name: {
    label: '姓名',
    type: 'input'
  },
  phone: {
    label: '手机号',
    rule: { Phone: true },
    type: 'input',
    attr: {
      type: 'tel',
      placeholder: '请输入手机号'
    }
  },
  nickName: {
    label: '昵称',
    type: 'input'
  },
  avatarUrl: {
    label: '头像',
    type: 'image'
  },
  gender: {
    label: '性别',
    attr: {
      actions: [
        { name: '未知', value: 0 },
        { name: '男', value: 1 },
        { name: '女', value: 2 }
      ]
    },
    type: 'select'
  },
  IDCard: {
    label: '身份证',
    rule: { IDCard: true },
    type: 'input'
  },
  address: {
    label: '地址',
    type: 'textarea'
  },
  userId: {
    label: '所属业务员',
    type: 'onlyselect'
  },
  recomendName: {
    label: '推荐人',
    type: 'input'
  },
  recomend: {
    label: '推荐人ID',
    unList: true,
    type: 'input'
  },
  grade: {
    label: '等级',
    attr: {
      actions: [
        { name: '无', value: 0 },
        { name: '一级', value: 1 },
        { name: '二级', value: 2 }
      ]
    },
    type: 'select'
  }
}